<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::group(['middleware'=>'wxauth'],function(){
    //首页
    Route::get('/', 'MumuController@index');
    //领取规则
    Route::get('/mumu/get_start_rules','MumuController@getStartRules')->name('rules');
    //获取卡券列表
    Route::get('/mumu/get_wxcard_list','MumuController@WxcardList');
});

//Route::get('/', 'MumuController@index');


//添加卡券前获取sigin
Route::post('/mumu/add_wxcard','WxCardsController@addWxcard');

//微信授权
Route::get('/wechat/userinfo','Auth\WxAuthController@getWxUserInfo')->name('wxuser_info');
Route::get('/wechat/callback','Auth\WxAuthController@WxauthCallback')->name('wxauth_callback');



